calculate

fun calculate(intervals: Array<DateRange>, showAllCategories: Boolean, showZeroes: Boolean): Budget.CalculationResults
fun calculate(intervals: Array<DateRange>, showAllCategories: Boolean, showZeroes: Boolean, rollupUnbudgetedCats: Boolean): Budget.CalculationResults

Compute budgeted and actual values based upon a series of graph intervals, for this budget.

Return

Object containing the budget results, including actual and budgeted values.

Parameters

intervals

Graphing/reporting intervals representing a series of date ranges.

showAllCategories

True if all categories, including unbudgeted ones, are to be shown.

showZeroes

True if budget items with no spending and no budgeted amount are to be included.


fun calculate(startDate: Int, endDate: Int, showAllCategories: Boolean, showZeroes: Boolean): Budget.CalculationResults

Compute budgeted and actual values based upon a single date range, for this budget.

Return

Object containing the budget results, including actual and budgeted values.

Parameters

startDate

Starting date to include.

endDate

Ending date to include.

showAllCategories

True if all categories, including unbudgeted ones, are to be shown.

showZeroes

True if budget items with no spending and no budgeted amount are to be included.